// import Hello from "./components/HelloWorld.vue";
// import App from "./App.vue";
const Login = () => import('./page/Login.vue');//登录
const Welcome = () => import('./page/welcome/index.vue');//欢迎页
const Layout = () => import("./components/layout/index.vue");//布局
const UnifyAcceptWorkbench = () => import("./page/unifyAcceptWorkbench/index.vue");//统一受理工作台
const AcceptWorkbench = () => import("./page/acceptWorkbench/index.vue");//业务受理受理工作台
const Workbench = () => import("./page/8512345/index.vue");//8512345工作台
const AccreditationWrokbench = () => import("./page/accreditationWorkbench/index.vue");//制证工作台
const InquiryRegister = () => import("./page/inquiryRegister/list.vue");//预审登记
const YsRecord = () => import("./page/ysRecord/list.vue");//预审记录
const SlRecord = () => import("./page/slRecord/list.vue");//受理记录
const SlRegister = () => import("./page/slRegister/list.vue");//受理登记
const licensing = () => import("./page/licensing/list.vue");//证照核发
const ZZRecord = () => import("./page/zzRecord/list.vue");//证照核发记录
const PermitDepot = () => import("./page/permitDepot/list.vue");//证照库
const Knowledge = () => import("./page/knowledgeLib/list.vue");//知识库
const Dp1 = () => import("./page/dp/dp1.vue");//综合大屏
const Dp2 = () => import("./page/dp/dp2.vue");//党建大屏
const Dp3 = () => import("./page/dp/dp3.vue");//政务大屏
const Dp4 = () => import("./page/dp/dp4.vue");//综治大屏
const Dp5 = () => import("./page/dp/dp5.vue");//综治大屏
const DemoDp2 = () => import("./page/dp/demoDp.vue");//党建大屏
const DemoDp3 = () => import("./page/dp/demoDp3.vue");//党建大屏
const DemoDp4 = () => import("./page/dp/demoDp4.vue");//党建大屏
const DemoDp5 = () => import("./page/dp/demoDp5.vue");//党建大屏

const Pigeonholes = () => import("./page/pigeonholes/index.vue");//分拣
const MyBacklog = () => import("./page/myBacklog/list.vue");//指挥中心-我的待办
const SortingRecord = () => import("./page/sortingRecord/list.vue");//指挥中心-事件记录
const IncidentCenter = () => import("./page/incidentCenter/index.vue");//事件中心
const IncidentRegister = () => import("./page/incidentRegister/list.vue");//事件登记
const EventManagement = () => import("./page/eventManagement/list.vue");//城管中心-事件管理
const EventRecord = () => import("./page/eventRecord/list.vue");//城管中心-事件记录
const IncidentRecord = () => import("./page/incidentRecord/list.vue");//事件记录
const BranchWorkbench = () => import("./page/branchWorkbench/index.vue");//委办局工作台
const BranchProvide = () => import("./page/branchProvide/list.vue");//委办局我的待办
const BranchRecord = () => import("./page/branchRecord/list.vue");//委办局事件记录


const routes = [
    { path: '/', redirect: '/login' },//重定向
    { path: "/login", name: "login", component: Login, },//登录
    { path: "/welcome", name: "welcome", component: Welcome, },//欢迎页
    {
        path: "/", name: "baseLayout", component: Layout, children: [
            {
                path: '/gov/unifiedWorkbench',//统一受理工作台
                name: 'gov/unifiedWorkbench',
                component: UnifyAcceptWorkbench,
            },
            {
                path: '/gov/permitWorkbench',//制证工作台
                name: 'gov/permitWorkbench',
                component: AccreditationWrokbench,
            },
            {
                path: '/gov/acceptWorkbench',//业务受理工作台
                name: 'gov/acceptWorkbench',
                component: AcceptWorkbench,
            },
            {
                path: '/gov/hotlineWorkbench',//8512345工作台
                name: 'gov/hotlineWorkbench',
                component: Workbench,
            },
            {
                path: '/gov/pretrialRegister',//预审登记
                name: 'gov/pretrialRegister',
                component: InquiryRegister,
            },
            {
                path: '/gov/pretrialRecord',//预审记录
                name: 'gov/pretrialRecord',
                component: YsRecord,
            },
            {
                path: '/gov/acceptRecord',//受理记录
                name: 'gov/acceptRecord',
                component: SlRecord,
            },
            {
                path: '/gov/acceptRegister',//受理登记
                name: 'gov/acceptRegister',
                component: SlRegister,
            },
            {
                path: '/gov/permitRecord',//核发记录
                name: 'gov/permitRecord',
                component: ZZRecord,
            },
            {
                path: '/gov/permitProvide',//制证
                name: 'gov/permitProvide',
                component: licensing,
            },
            {
                path: '/gov/permitDepot',//证照库
                name: 'gov/permitDepot',
                component: PermitDepot,
            },
            {
                path: '/gov/scienceDepot',//知识库
                name: 'gov/scienceDepot',
                component: Knowledge,
            },
            {
                path: '/gov/sortingWorkbench',//分拣转发-工作台
                name: 'gov/sortingWorkbench',
                component: Pigeonholes,
            },
            {
                path: '/gov/sortingRegister',//指挥中心我的待办
                name: 'gov/sortingRegister',
                component: MyBacklog,
            },
            {
                path: '/gov/sortingRecord',//指挥中心事件记录
                name: 'gov/sortingRecord',
                component: SortingRecord,
            },
            {
                path: '/gov/CGWorkbench',//智慧城管事件中心工作台
                name: 'gov/CGWorkbench',
                component: IncidentCenter,
            },
            {
                path: '/gov/hotlineRegister',//8512345事件登记
                name: 'gov/hotlineRegister',
                component: IncidentRegister,
            },
            {
                path: '/gov/hotlineRecord',//8512345事件记录
                name: 'gov/hotlineRecord',
                component: IncidentRecord,
            },
            {
                path: '/gov/branchWorkbench',//委办局工作台
                name: 'gov/branchWorkbench',
                component: BranchWorkbench,
            },
            {
                path: '/gov/branchProvide',//委办局我的待办
                name: 'gov/branchProvide',
                component: BranchProvide,
            },
            {
                path: '/gov/branchRecord',//委办局事件记录
                name: 'gov/branchRecord',
                component: BranchRecord,
            },
            {
                path: '/gov/eventManage',//城管中心-事件管理
                name: 'gov/eventManage',
                component: EventManagement,
            },
            {
                path: '/gov/endRecord',//城管中心-结案记录
                name: 'gov/endRecord',
                component: EventRecord,
            },

        ],

    },
    {
        path: '/dp1',//综合大屏
        name: 'dp1',
        component: Dp1,
    },
    {
        path: '/dp2',//党建大屏
        name: 'dp2',
        component: Dp2,
    },
    {
        path: '/demodp2',//党建大屏
        name: 'demodp2',
        component: DemoDp2,
    },
    {
        path: '/demodp3',//党建大屏
        name: 'demodp3',
        component: DemoDp3,
    },
    {
        path: '/demodp4',//综治专题
        name: 'demodp4',
        component: DemoDp4,
    },
    {
        path: '/demodp5',//综治专题
        name: 'demodp5',
        component: DemoDp5,
    },
    {
        path: '/dp3',//政务大屏
        name: 'dp3',
        component: Dp3,
    },
    {
        path: '/dp4',//综治大屏
        name: 'dp4',
        component: Dp4,
    },
    {
        path: '/dp5',//综治大屏
        name: 'dp5',
        component: Dp5,
    },
]

export default routes;